class DocumentSearchMenu {
    constructor() {
        this.title = '查找'
        this.tag = 'button'
        this.iconSvg = '<svg viewBox="0 0 1024 1024"xmlns="http://www.w3.org/2000/svg"><path d="M448.848193 835.136561c-212.815967 0-385.958352-173.138292-385.958352-385.952212 0-212.805734 173.142385-385.948119 385.958352-385.948119 212.818013 0 385.964492 173.141362 385.964492 385.948119C834.813708 661.998269 661.66723 835.136561 448.848193 835.136561M448.848193 158.231791c-160.433946 0-290.956651 130.522706-290.956651 290.952558 0 160.430876 130.522706 290.951535 290.956651 290.951535 160.435992 0 290.963815-130.520659 290.963815-290.951535C739.813031 288.754496 609.284185 158.231791 448.848193 158.231791"></path><path d="M899.635039 958.408119c-14.966876 0-29.922497-5.711072-41.3385-17.120936L656.648936 739.656977c-22.825868-22.823821-22.825868-59.841923 0-82.678024 22.842241-22.820752 59.851133-22.820752 82.684164 0l201.64658 201.630207c22.826891 22.826891 22.826891 59.842946 0 82.678024C929.558559 952.697047 914.600893 958.408119 899.635039 958.408119"></path></svg>'
    }
    getValue(editor) {
        return 'search'
    }
    isActive(editor) {
        return false
    }
    isDisabled(editor) {
        return false
    }
    exec(editor, value) {
        if (this.isDisabled(editor))
            return ''
        editor.emit('search-replace', value)
    }
}

export default DocumentSearchMenu